package com.octoplay.player;

import android.app.Activity;
import android.net.Uri;
import android.view.View;

public abstract class BaseMediaPlayer {
	
	protected int STATUS;
	protected static final int STATUS_ERROR = 0;
	protected static final int STATUS_IDLE = 0;
	protected static final int STATUS_INITIALIZED = 1;
	protected static final int STATUS_PREPARED = 2;
	protected static final int STATUS_STARTED = 3;
	protected static final int STATUS_PAUSED = 4;
	protected static final int STATUS_STOPPED = 5;
	protected static final int STATUS_PLAYBACKCOMPLETED = 6;
		
	protected Uri playUrl;
	protected Activity mActivity;
	protected PlayerListener listener;
		
	public abstract boolean isPrepared();
	public abstract boolean isPlaying();
	public abstract boolean isPaused();
	
	public abstract View getView();
	public abstract void setDataSource(Uri url);
	public abstract void requestNativeSeek(int seekTo);
	public abstract void pause();
	public abstract void play();
	public abstract void stop();
	public abstract int getCurrentPosition();
	public abstract int getDuration();
	public abstract void release();
	public abstract void reset();
	public abstract void prepare();
	public abstract void start();
}
